
import { getToken, setToken,removeToken } from "../../utils/storage";
// import { reqLogin, reqRefresh } from "../../api/user";

const user = {
  state: {
    token: getToken(),
    userInfo: null,
  },

  mutations: {
    SET_TOKEN: (state, token) => {
      state.token = token;
    },
    SET_USERINFO: (state, val) => {
      state.userInfo = val;
    },
  },

  actions: {
    // 登录
   
    // 退出系统

    // 刷新token
  

  },
};

export default user;
